using Microsoft.VisualBasic.CompilerServices;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using yWriter6.My.Resources;

namespace yWriter6
{
	[DesignerGenerated]
	public class frmProblemWord : Form
	{
		private IContainer components;

		[CompilerGenerated]
		[AccessedThroughProperty("Label1")]
		private Label _Label1;

		[CompilerGenerated]
		[AccessedThroughProperty("Label2")]
		private Label _Label2;

		[CompilerGenerated]
		[AccessedThroughProperty("txtProblemWord")]
		private TextBox _txtProblemWord;

		[CompilerGenerated]
		[AccessedThroughProperty("txtReplacement")]
		private TextBox _txtReplacement;

		[CompilerGenerated]
		[AccessedThroughProperty("ToolTip1")]
		private ToolTip _ToolTip1;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdOK")]
		private Button _cmdOK;

		[CompilerGenerated]
		[AccessedThroughProperty("cmdCancel")]
		private Button _cmdCancel;

		[field: AccessedThroughProperty("Label1")]
		internal virtual Label Label1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("Label2")]
		internal virtual Label Label2
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtProblemWord")]
		internal virtual TextBox txtProblemWord
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("txtReplacement")]
		internal virtual TextBox txtReplacement
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		[field: AccessedThroughProperty("ToolTip1")]
		internal virtual ToolTip ToolTip1
		{
			get;
			[MethodImpl(MethodImplOptions.Synchronized)]
			set;
		}

		internal virtual Button cmdOK
		{
			[CompilerGenerated]
			get
			{
				return _cmdOK;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdOK_Click;
				Button cmdOK = _cmdOK;
				if (cmdOK != null)
				{
					cmdOK.Click -= value2;
				}
				_cmdOK = value;
				cmdOK = _cmdOK;
				if (cmdOK != null)
				{
					cmdOK.Click += value2;
				}
			}
		}

		internal virtual Button cmdCancel
		{
			[CompilerGenerated]
			get
			{
				return _cmdCancel;
			}
			[MethodImpl(MethodImplOptions.Synchronized)]
			[CompilerGenerated]
			set
			{
				EventHandler value2 = cmdCancel_Click;
				Button cmdCancel = _cmdCancel;
				if (cmdCancel != null)
				{
					cmdCancel.Click -= value2;
				}
				_cmdCancel = value;
				cmdCancel = _cmdCancel;
				if (cmdCancel != null)
				{
					cmdCancel.Click += value2;
				}
			}
		}

		public frmProblemWord()
		{
			base.Load += frmProblemWord_Load;
			InitializeComponent();
		}

		[DebuggerNonUserCode]
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (disposing && components != null)
				{
					components.Dispose();
				}
			}
			finally
			{
				base.Dispose(disposing);
			}
		}

		[System.Diagnostics.DebuggerStepThrough]
		private void InitializeComponent()
		{
			components = new System.ComponentModel.Container();
			Label1 = new System.Windows.Forms.Label();
			Label2 = new System.Windows.Forms.Label();
			txtProblemWord = new System.Windows.Forms.TextBox();
			txtReplacement = new System.Windows.Forms.TextBox();
			ToolTip1 = new System.Windows.Forms.ToolTip(components);
			cmdOK = new System.Windows.Forms.Button();
			cmdCancel = new System.Windows.Forms.Button();
			SuspendLayout();
			Label1.AutoSize = true;
			Label1.Location = new System.Drawing.Point(10, 30);
			Label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
			Label1.Name = "Label1";
			Label1.Size = new System.Drawing.Size(100, 19);
			Label1.TabIndex = 0;
			Label1.Text = "Problem Word:";
			Label1.TextAlign = System.Drawing.ContentAlignment.TopRight;
			Label2.AutoSize = true;
			Label2.Location = new System.Drawing.Point(15, 65);
			Label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
			Label2.Name = "Label2";
			Label2.Size = new System.Drawing.Size(90, 19);
			Label2.TabIndex = 0;
			Label2.Text = "Replacement:";
			Label2.TextAlign = System.Drawing.ContentAlignment.TopRight;
			txtProblemWord.Location = new System.Drawing.Point(108, 26);
			txtProblemWord.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			txtProblemWord.Name = "txtProblemWord";
			txtProblemWord.Size = new System.Drawing.Size(188, 25);
			txtProblemWord.TabIndex = 1;
			ToolTip1.SetToolTip(txtProblemWord, "A word you overuse or dislike");
			txtReplacement.Location = new System.Drawing.Point(108, 61);
			txtReplacement.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			txtReplacement.Name = "txtReplacement";
			txtReplacement.Size = new System.Drawing.Size(188, 25);
			txtReplacement.TabIndex = 1;
			ToolTip1.SetToolTip(txtReplacement, "The word you'd rather use instead");
			cmdOK.AutoSize = true;
			cmdOK.Location = new System.Drawing.Point(245, 122);
			cmdOK.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			cmdOK.Name = "cmdOK";
			cmdOK.Size = new System.Drawing.Size(65, 34);
			cmdOK.TabIndex = 2;
			cmdOK.Text = "OK";
			cmdOK.UseVisualStyleBackColor = true;
			cmdCancel.AutoSize = true;
			cmdCancel.Location = new System.Drawing.Point(21, 122);
			cmdCancel.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			cmdCancel.Name = "cmdCancel";
			cmdCancel.Size = new System.Drawing.Size(65, 34);
			cmdCancel.TabIndex = 2;
			cmdCancel.Text = "Cancel";
			cmdCancel.UseVisualStyleBackColor = true;
			base.AutoScaleDimensions = new System.Drawing.SizeF(7f, 17f);
			base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(331, 169);
			base.Controls.Add(cmdCancel);
			base.Controls.Add(cmdOK);
			base.Controls.Add(txtReplacement);
			base.Controls.Add(txtProblemWord);
			base.Controls.Add(Label2);
			base.Controls.Add(Label1);
			Font = new System.Drawing.Font("Segoe UI", 10f);
			base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			base.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
			base.MaximizeBox = false;
			base.Name = "frmProblemWord";
			Text = "Setup Problem Word";
			ResumeLayout(false);
			PerformLayout();
		}

		public void DataToForm(string ProblemWord, string Replacement)
		{
			txtProblemWord.Text = ProblemWord;
			txtReplacement.Text = Replacement;
			base.DialogResult = DialogResult.Cancel;
		}

		private void cmdCancel_Click(object sender, EventArgs e)
		{
			Hide();
		}

		private void cmdOK_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.OK;
		}

		private void frmProblemWord_Load(object sender, EventArgs e)
		{
			base.Icon = Resources.yWriter5_Ico;
		}
	}
}
